﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" 
CodeBehind="ElectionSpeeches.aspx.cs" Inherits="Nivdal.ElectsionSpeeches" Theme="SkinFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="PageTitleLabel" runat="server" Text="<%$ Resources:Resource, Elections_PageTitle %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <asp:HyperLink ID="BackLink1" runat="server" SkinID="GreenTitleHyperLink" Text="<%$ Resources:Resource, Elections_BackToElections %>"></asp:HyperLink>
        <asp:Repeater ID="CandidatesListview" runat="server" DataSourceID="VotingDataSource">
            <ItemTemplate>
                <asp:Image ID="VotedImage" runat="server" Visible='<%# Eval("CandidateId").ToString() == Eval("VoteFor").ToString() %>'
                 ImageUrl="~/Images/Icons/vi.png" ToolTip="<%$ Resources:Resource, Elections_YourCandidate %>" />
            
                <asp:HyperLink ID="CandidateLink" runat="server" SkinID="GreenTitleHyperLink"
                 Text='<%# Eval("CandidateName") %>' NavigateUrl='<%# "~/UserPage.aspx?Id=" + Eval("UserId") %>'></asp:HyperLink>
            
                <br />
                <i><asp:Label ID="SpeechTitleLabel" runat="server" Text='<%# Eval("Speech") %>' SkinID="GridLabel"></asp:Label></i>
            
            </ItemTemplate>
            <SeparatorTemplate><br /><hr /></SeparatorTemplate>
        </asp:Repeater>
        <br /><hr />
        <asp:HyperLink ID="BackLink2" runat="server" SkinID="GreenTitleHyperLink" Text="<%$ Resources:Resource, Elections_BackToElections %>"></asp:HyperLink>
        <asp:SqlDataSource ID="VotingDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_ElectionsGetListOfCandidates" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource> 
    </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Elections_PageTitle %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>
